﻿using Ivory;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Schism;
using Schism.Cameras;
using Schism.IO;
using Schism.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Defender
{
    /// <summary>
    /// Game Screen Responsible for Running and Simulating a Game
    /// </summary>
    public class LevelRunner : LevelBase
    {
        public static string Key = "@~>klGAME";

        //Fields
        
        
        //ctor
        public LevelRunner()
            : base()
        {

        }

        //Methods
        protected override void Render(SpriteBatch batch, GameTime time)
        {

        }
        protected override void Solve(InputControl input, GameTime time)
        {

        }

        protected override bool OnLoadingScreen()
        {
            WorldIO io = new WorldIO();
            io.Load("dungeon_devbasic1.dung");
            io.Assign(this);

            ObjectHolder.GameCamera = new Camera(this);
            return true;
        }
    }
}
